package com.lihuinch.test.feishu.eventsubscribe.handler.impl;

import com.alibaba.fastjson.JSONObject;
import com.lihuinch.test.feishu.eventsubscribe.constant.TestConstants;
import com.lihuinch.test.feishu.eventsubscribe.handler.FeishuEventHandler;
import com.lihuinch.test.feishu.eventsubscribe.handler.response.FeishuEventApprovalTaskResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author：岳彩郑
 * @desc：TODO
 * @date：2022/9/30 8:35
 **/
@Service(FeishuEventHandler.FEI_SHU_EVENT_HANDLER + "_" + TestConstants.FeishuEvent.Contact.APPROVAL_TASK)
public class FeishuEventApprovalTaskHandler implements FeishuEventHandler<FeishuEventApprovalTaskResponse> {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public FeishuEventApprovalTaskResponse handleEvent(JSONObject param) {

        logger.info("FeishuEventApprovalTaskResponse");

        return new FeishuEventApprovalTaskResponse();
    }
}
